<?php
/**
 * Created by sublime 3.
 * Auth: Inhere
 * Date: 14-6-27
 * Time: 10:35
 * Uesd: 主要功能是 hi
 */
namespace ulue\ext\bootstrap;

use ulue\libs\front\Html;

class BootstrapTag extends Html
{
    /*
    样式--
    btn-primary
    btn-success
    btn-info
    btn-warning
    btn-danger
    btn-link
    大小--
    btn-lg
    btn-sm
    btn-xs
    */
    static public function button($text='Button', array $attrs=[], array $config=[] )
    {
        $defaultAttrs=array(
            'type'      => 'button',
            'disabled'  => 'false',
            'class'     => 'btn'
            );

        $b = new Element('button', $defaultAttrs);
        $b->addAttrs($attrs);

        return $b;
    }


}